package com.geetour.columbus.common.exceptions;

public class ServiceException extends BaseException {

    private static final long serialVersionUID = 3439576294792516705L;

    private int               errorCode;

    public ServiceException(){
    }

    public ServiceException(Throwable cause){
        super(cause);
        this.errorCode = 0;
    }

    public ServiceException(String msg, Throwable cause){
        super(msg, cause);
        this.errorCode = 0;
    }

    public ServiceException(String message){
        super(message);
        this.errorCode = 0;
    }

    public ServiceException(int errorCode, String message){
        super(message);
        this.errorCode = errorCode;
    }

    public ServiceException(int errorCode, String message, Throwable cause){
        super(message, cause);
        this.errorCode = errorCode;
    }

    public int getErrorCode() {
        return errorCode;
    }
}
